<?php
    require_once '../include/connectBDD.php';
    require_once '../class/securite.class.php';
    
    if($_GET['value'] == '1')
    {
        $query = "UPDATE user SET ".securite::bdd($_GET['id'])." = 0 WHERE idU = '".$_SESSION['id']."' " ; 
        $req = mysql_query($query) ; 
    }
    elseif($_GET['value'] == '0')
    {
        $query = "UPDATE user SET ".securite::bdd($_GET['id'])." = 1 WHERE idU = '".$_SESSION['id']."' " ; 
        $req = mysql_query($query) ; 
    }

?>
